package com.smxy.daydayup.service.serviceImpl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.smxy.daydayup.pojo.School;
import com.smxy.daydayup.mapper.SchoolMapper;
import com.smxy.daydayup.service.SchoolService;

import java.util.List;

/**
  * @team daydayup
  * @time 2021-12-06 21:45
  */
@Service
public class SchoolServiceImpl implements SchoolService{

    @Resource
    private SchoolMapper schoolMapper;

    @Override
    public int deleteByPrimaryKey(Long schoolId) {
        return schoolMapper.deleteByPrimaryKey(schoolId);
    }

    @Override
    public int insert(School record) {
        return schoolMapper.insert(record);
    }

    @Override
    public int insertSelective(School record) {
        return schoolMapper.insertSelective(record);
    }

    @Override
    public School selectByPrimaryKey(Long schoolId) {
        return schoolMapper.selectByPrimaryKey(schoolId);
    }

    @Override
    public int updateByPrimaryKeySelective(School record) {
        return schoolMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(School record) {
        return schoolMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<School> selectAll() {
        return schoolMapper.selectAll();
    }

}
